package com.fancy.learncenter.activity;

import android.content.Intent;
import android.os.Bundle;
import android.view.View;

import com.fancy.learncenter.activity.base.BaseActivity;
import com.superservice.lya.R;

import butterknife.ButterKnife;
import butterknife.OnClick;

public class MyReleaseActivity extends BaseActivity {

    public static String IS_MY_KEY = "IS_MY_KEY";

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_my_realease, getResources().getColor(R.color.toolbar_color));
        ButterKnife.bind(this);
        initToolbar("我的发布");
    }

    @OnClick({R.id.pic_release, R.id.wd_release, R.id.xz_release, R.id.zw_release,
            R.id.px_release, R.id.hd_release, R.id.video_release})
    public void onViewClicked(View view) {
        Intent intent;
        switch (view.getId()) {
            case R.id.pic_release:
                intent = new Intent(this, MyReleaseTzActivity.class);
                startActivity(intent);
                break;
            case R.id.wd_release:
                intent = new Intent(this, MyReleaseWdActivity.class);
                startActivity(intent);
                break;
            case R.id.xz_release:
                intent = new Intent(this, MyReleaseGoodsActivity.class);
                startActivity(intent);
                break;
            case R.id.zw_release:
                intent = new Intent(this, MyReleaseZpActivity.class);
                startActivity(intent);
                break;
            case R.id.px_release:
                intent = new Intent(this, MyReleasePxActivity.class);
                startActivity(intent);
                break;
            case R.id.hd_release:
                intent = new Intent(this, MyReleaseHdActivity.class);
                startActivity(intent);
                break;
            case R.id.video_release:
                intent = new Intent(this, MyReleaseVideoActivity.class);
                startActivity(intent);
                break;
        }
    }
}
